/**
 * fulihui.com Inc.
 * Copyright (c) 2015-2016 All Rights Reserved.
 */
package com.fulihui.integral.core.api;

import com.fulihui.integral.core.request.ISConversionReq;
import com.fulihui.integral.core.request.ISConvertDetailCountReq;
import com.fulihui.integral.core.request.ISConvertDetailPageReq;
import com.fulihui.integral.core.result.ISConversionResult;
import com.fulihui.integral.core.result.ISConvertDetailCountByConvTypeResult;
import com.fulihui.integral.core.result.ISConvertDetailPageResult;

/**
 * 积分兑换服务
 *
 * @author yunfeng.li
 * @version $Id: v 0.1 2017年05月02日 13:20 yunfeng.li Exp $
 */
public interface ISConvertService {

    /**
     * 积分兑换详情
     *
     * @param request
     * @return
     */
    ISConversionResult recordConvertDetail(ISConversionReq request);

    /**
     * 根据对换类型 进行聚合统计
     * @param request
     * @return
     */
    ISConvertDetailCountByConvTypeResult queryCountByConvType(ISConvertDetailCountReq request);

    /**
     * 合计详情
     * @param request
     * @return
     */
    ISConvertDetailPageResult queryPageDetailByConvType(ISConvertDetailPageReq request);
}
